<?php

namespace app\api\controller\v1\untils;

use app\admin\model\SystemData;
use app\api\controller\Api;

class Content extends Api
{

    public function get(){

        $rule = [
            'name'    => 'require',
        ];
        $message  =   [
            'name.require' => '信息类别不为空'
        ];
        $this->validate($this->post, $rule,$message);
        $data = new SystemData();
        $data =$data->where(['name'=>$this->post['name']])->select();
        $this->success('获取成功',$data);

    }

}